package com;

import com.alibaba.fastjson.JSON;

public class MyTest {
    public static void main(String[] args) {
//        & 、&&   &非短路，&&短路
//        ++先加1
        int x = 1;
        if(x == 1 & ++x == 2){//1
            System.out.print("xxxxxx");
        }
        System.out.println(x);


    }
    public static boolean getXX(){
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return true;
    }
    public static void testJson() {
        Users user = new Users();
        user.setUsername("zs");
        user.setPassword("123");
        String s = JSON.toJSONString(user);
        System.out.println(s);
    }
}
